/*
 * @Author: 李环玉 834654733@qq.com
 * @Date: 2024-01-06 18:39:08
 * @LastEditors: 李环玉 834654733@qq.com
 * @LastEditTime: 2024-01-07 05:25:49
 * @FilePath: \vue3-ts-vite\src\views\article\tool\data\add.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { getToken, removeToken } from '@/utils/cookies'
let formItems = {
  rules:{
    repetName: [
      { required: true, message: '报表名称不能为空', trigger: 'blur' }
    ],
  },
  labelPosition:'right',
  labelWidth:120,
  statusIcon:false,
  validateOnRuleChange:true,
  size:"default",
  scrollToError:true,
  items:[
    {
      prop:'name',
      label:'工具名称',
      labelWidth:80,
      inputType:'input',
      span:12,
      placeholder:'',
      clearable:true,
      disabled:false,
      prefixIcon:'',
      suffixIcon:'',
      readonly:false,
      type:'text'
    },
    {
      prop:'herf',
      label:'工具地址',
      labelWidth:80,
      inputType:'input',
      span:12,
      placeholder:'',
      clearable:true,
      disabled:false,
      prefixIcon:'',
      suffixIcon:'',
      readonly:false,
      type:'text'
    },
    {
      prop:'img',
      label:'标签图标',
      labelWidth:80,
      inputType:'upload',
      span:12,
      action:'http://www.lihyweb.cn/api/upload',
      limit:1,
      headers:{
        Authorization:getToken() || '',
        type:"file"
      }
    },
    {
      prop:'doc',
      label:'工具描述',
      labelWidth:80,
      inputType:'input',
      span:12,
      placeholder:'',
      clearable:true,
      disabled:false,
      prefixIcon:'',
      suffixIcon:'',
      readonly:false,
      type:'text'
    }
  ]
}

export default formItems